This patch adds the ability to have restricted write access to some
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 27 Apr 2006 08:49:48 +0000 (09:49 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 27 Apr 2006 08:49:48 +0000 (09:49 +0100)
commit4025e86c1a51452c234a43d1661abb6ed993ce36
tree05c7bd3a3f60f2d9c9063b423033dd94567dee36
parent067abcc94959473c9b2e6f6085bc225481f6d238
This patch adds the ability to have restricted write access to some
of the structures on the capability list. Specifically, this patch adds
support for reading data through the Vital Product Data capability
structure and for manipulating power management of a card. A driver
domain is not allowed to enable Power Management Events (the PME trace
may be shared across devices in many domains), but it can put a device
in its control to sleep or query it for power usage statistics. This
code could possibly be expanded in the future to add support for AGP,
PCI-X, and MSI/MSIX (all of which are controlled through structures on
the capability list).

This patch also corrects some formatting issues in the PCI backend and
adds some comments to the code regarding permissive mode.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
linux-2.6-xen-sparse/drivers/xen/pciback/Makefile
linux-2.6-xen-sparse/drivers/xen/pciback/conf_space.c
linux-2.6-xen-sparse/drivers/xen/pciback/conf_space.h
linux-2.6-xen-sparse/drivers/xen/pciback/conf_space_capability.c [new file with mode: 0644]
linux-2.6-xen-sparse/drivers/xen/pciback/conf_space_capability.h [new file with mode: 0644]
linux-2.6-xen-sparse/drivers/xen/pciback/conf_space_capability_pm.c [new file with mode: 0644]
linux-2.6-xen-sparse/drivers/xen/pciback/conf_space_capability_vpd.c [new file with mode: 0644]
linux-2.6-xen-sparse/drivers/xen/pciback/conf_space_header.c
linux-2.6-xen-sparse/drivers/xen/pciback/pci_stub.c
linux-2.6-xen-sparse/drivers/xen/pciback/pciback.h
linux-2.6-xen-sparse/drivers/xen/pciback/pciback_ops.c